
import { instance as request } from "@/utils/request";

export const userinfo = (fid: any) => {
    return request({
        url: `/userinfo?fid=${fid}`,
        method: "get",
    });
};

export const muserinfo = (data: any) => {
    return request({
        url: `/muserinfo`,
        method: "post",
        data: data
    });
};

export const getChatHistory = (data: any) => {
    return request({
        url: `/getChatHistory`,
        method: "get",
        params: data
    });
};


export const readUnreadInfo = (data: any) => {
    return request({
        url: `/readUnreadInfo`,
        method: "post",
        data: data
    });
};

export const sendEmail = () => {
    return request({
        url: `/sendEmail`,
        method: "get",
    });
};

export const modifyUserInfo = (data: any) => {
    return request({
        url: `/modifyUserInfo`,
        method: "post",
        data: data
    });
};

export const upload = (data: any) => {
    return request({
        url: `/upload`,
        method: "post",
        data: data
    });
};
